<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    //以前的写法
    function foo() {}
    var foo = function() {}

    // 箭头函数:1、箭头函数没有this，arguments，2、箭头函数不能作为构造函数
    var foo1 = () => {}

    // 练习
    var nums = ['a','b','c']
    nums.forEach((item,index,arr)=>{
      console.log(item);
    })

    
  </script>
</body>
</html>